<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
	    <style type="text/css">
	    	html,body{width: 100%;height: 100%;}
			.top-button{float: right;margin-top: 2.5%;margin-right: -3%;border: 0;background-color: #F7F7F7;color: #007AFF;}
			.mui-btn-primary:active{background-color: #F7F7F7 !important;border: 0!important;}
		    #matgin{margin-top: 10%}
            .passw-div{display: flex;align-items: center;width: 100%;background-color: #FFFFFF;padding: 3% 6%;}
            .passw-div .pass-input{margin-bottom: 0;width: 70%;margin-left: 5%;margin-right: 0;border: 0;}
            .forgetpassw-a{float: right;margin-right: 5%;margin-top: 2%;}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav" id="header">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">修改密码</h1>
		    <button class="top-button mui-btn-primary" id="buttonm">完成</button>
		</header>
		
		<div class="mui-content mui-con">
			<div id="matgin"></div>
		    <div  class="passw-div">
		    	原密码
		    	<input type="text" id="oldpassword" class="pass-input" placeholder="输入原密码" />
		    </div>
		    
		    <div class="passw-div">
		    	新密码
		    	<input type="text" id="newpassword" class="pass-input" placeholder="输入新密码" />
		    </div>
		    
		    <div class="passw-div">
		    	新密码
		    	<input type="text" id="newpassword1" class="pass-input" placeholder="再次输入新密码" />
		    </div>
		    
		    <a href="YZMmakepassword.html" class="forgetpassw-a">忘记密码?</a>
		</div>
		
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/immersed.js" ></script>
		<script type="text/javascript">
			mui.init();
			mui.plusReady(function(){
				
				starbar();
				plus.navigator.setStatusBarStyle('dark');
				
				
				document.getElementById('buttonm').addEventListener('tap',function(){
					var oldpassword = document.getElementById('oldpassword').value;
					var newpassword = document.getElementById('newpassword').value;
					var newpassword1 = document.getElementById('newpassword1').value;
					if(oldpassword == "" || newpassword == "" || newpassword1 == ""){
						mui.alert('输入内容不能有空!')
					}else{
	//					if(oldpassword != ){
	//						mui.toast('原密码输入错误！');
	//					}else{
							if(newpassword != newpassword1){
								mui.alert('两处新密码设置不一致!');
							}else{
								mui.openWindow({
									url: "../../index.html",
									id: "../../index.html"
								})
								plus.navigator.setStatusBarStyle('light');
							}
						//}
				   }
					
				})
			})
			
		</script>
	</body>

</html>